package com.example.assignment01_javaee.Dao;

import com.example.assignment01_javaee.Entity.Customer;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustomerDao {
    //查询所有的customer
    List<Customer> getAllCustomers();

    //根据customer id查找
    Customer getCustomerById(int customerId);

    //增加customer
    void createCustomer(Customer customer);

    //更改customer数据
    void updateCustomer(Customer customer);

    //根据customer id删除
    void deleteCustomer(int customerId);
}
